﻿using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    public class CorpIdentInfo
    {
        /// <summary>
        /// 企业名称全称。长度最大100个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "corpName", Required = Required.AllowNull)]
        [MaxLength(100)]
        public string CorpName { get; set; }

        /// <summary>
        /// 企业组织类型：
        ///corp: 企业
        ////individual_biz: 个体工商户
        ///government: 政府和事业单位
        ///other: 其他类型。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "corpIdentType", Required = Required.Always)]
        public string CorpIdentType { get; set; }

        /// <summary>
        /// 企业统一社会信用代码或各种类型组织的唯一代码，长度最大50个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "corpIdentNo", Required = Required.Always)]
        [MaxLength(50)]
        public string CorpIdentNo { get; set; }

        /// <summary>
        /// 法定代表人名称(Legal Representative Name)。长度最大50个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "legalRepName", Required = Required.AllowNull)]
        [MaxLength(50)]
        public string LegalRepName { get; set; }
    }
}